import { Home, FileText, RectangleOne, Connection, Pic, Time, CalendarDot, Text, TwoDimensionalCodeOne, BarCode, ListNumbers } from '@icon-park/vue-next'
const IconMap = new Map([
  ['Home', Home],
  ['FileText', FileText],
  ['RectangleOne', RectangleOne],
  ['Connection', Connection],
  ['Pic', Pic],
  ['Time', Time],
  ['CalendarDot', CalendarDot],
  ['Text', Text],
  ['TwoDimensionalCodeOne', TwoDimensionalCodeOne],
  ['BarCode', BarCode],
  ['ListNumbers', ListNumbers]
])
export const getIcon = (name) => {
  if (!name) return null
  return IconMap.get(name)
}
